import React from 'react'
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import UserPublich from '../../../components/publish-manage/UserPublich'
import { Button } from 'antd';

function Sunset() {
  const { dataSource,handleDelete } = UserPublich(3);
  return (
    <div>
      <NewsPublish
        dataSource={dataSource}
        button={(id) => <Button
          danger
          style={{ margin: "0px 10px" }}
        onClick={() => {
          handleDelete(id)
        }}
        >删除</Button>}></NewsPublish>
    </div>
  )
}

export default Sunset